//
//  BCBaseWebViewController.h
//  GSBlockChain
//
//  Created by guoshikeji_a on 2018/11/28.
//  Copyright © 2018 guoshikeji. All rights reserved.
//

#import "BCChildViewController.h"

//handler
#import "BCScriptMessageHandler.h"
#import "WKWbCrossDomainHandle.h"
//view
#import "BCWebView.h"

@interface BCBaseWebViewController : BCChildViewController<WKNavigationDelegate,WKUIDelegate,WKScriptMessageHandler>

/**
 *YYWebView
 */
@property (nonatomic, strong, readonly) BCWebView *webView;

/**
 *DDScriptMessageHandler
 *此对象用于添加js方法时 controller无法释放 转移的强对象引用
 */
@property (nonatomic, strong, readonly) BCScriptMessageHandler *scriptMessageHandler;
#pragma mark - WKScriptMessageHandler
- (void)userContentController:(WKUserContentController *)userContentController didReceiveScriptMessage:(WKScriptMessage *)message;



#pragma mark - getter properties

/**
 *当前页面的请求
 */
@property (nonatomic, copy) NSURLRequest *currentRequest;



#pragma mark - private method
/**
 * 直接加载URL
 */
- (void)loadRequestWithURL:(NSURL *)url;

/**
 set title 的方法
 */
- (void)baseSetTtileAction;

@end

